<template>
  <header>
    <div class="header">
      <div class="city">
        <i class="iconfont">&#xe679;</i>
        <router-link to="/city" tag="div" class="header_l-address">
        北京
        </router-link>
      </div>
      <v-touch class="search" tag="div" @tap="handleSearch">
        <i class="iconfont">&#xe624;</i>
        <span>搜索演出关键字</span>
      </v-touch>
      <i class="iconfont change">&#xe605;</i>
    </div>
  </header>
</template>
<script>
export default {
  name: "Header",
  methods:{
       handleSearch(){
            this.$router.push("/search")
        }
  }
};
</script>
<style scoped>
.header {
  width: 100%;
  height: 1rem;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgb(247, 241, 241);
  border-bottom: 1px solid rgb(247, 241, 241);
}
.header .city {
  width: 1.6rem;
  height: 0.6rem;
  justify-content: center;
  align-items: center;
  display: flex;
}
.header .search {
  width: 4.8rem;
  height: 0.6rem;
  border-radius: 20px;
  background-color: rgb(247, 241, 241);
  /* justify-content: center; */
  align-items: center;
  display: flex;
}
.header .search i {
  margin-left: 0.2rem;
}
.header .search .header_l-address {
  color: grey;
  margin-left: 0.3rem;
}
.header i {
  margin-right: 0.15rem;
}
</style>